import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'

import Icon from '@ele-similar-ui/components/icon'
import Tree from '@ele-similar-ui/components/tree'
import Checkbox from '@ele-similar-ui/components/Checkbox'
import Button from '@ele-similar-ui/components/button'
import Input from '@ele-similar-ui/components/input'
import { Form, FormItem } from '@ele-similar-ui/components/form'
import '@ele-similar-ui/theme-chalk/src/index.scss'

const plugins = [Icon, Tree, Checkbox, Button, Input, Form, FormItem]

const app = createApp(App)

plugins.forEach(plugin => {
  app.use(plugin)
})
app.use(router)
app.mount('#app')
